#!/usr/bin/env node
/*
 * @Author: your name
 * @Date: 2021-02-20 09:53:35
 * @LastEditTime: 2021-02-20 09:58:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \2.19\day1-ly\cli-demo\cli.js
 */
console.log('1')

new Promise((resolve, reject)=>{
    resolve('3')
    console.log('2')
}).then((res)=>{
    console.log(res)
})

setTimeout(()=>{
    console.log('5')
    new Promise((resolve, reject)=>{
        resolve('6')
        console.log('7')
    }).then((res)=>{
        console.log(res)
    })
    console.log('8')
})

console.log('4')